﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <!--ListBox样式-->

    <Style TargetType="ListBox">
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>

    <!--ListBoxItem样式-->
    <Style TargetType="ListBoxItem">
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="Height" Value="28"/>
        <Setter Property="FontSize" Value="13"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background">
                    <Setter.Value>
                        <LinearGradientBrush StartPoint="1,0" EndPoint="0,1">
                            <!--<GradientStop Color="Black" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>-->
                            <GradientStop Color="#FFFBF3F3" Offset="0.026"/>
                            <GradientStop Color="White" Offset="1"/>
                            <GradientStop Color="#FFC7E5F9" Offset="0.914"/>
                            <GradientStop Color="#FFDBF2FD" Offset="0.476"/>
                            <GradientStop Color="#FFC9E7F7" Offset="0.519"/>
                            <GradientStop Color="#FFE3F2FA" Offset="0.18"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <!--<Trigger Property="IsSelected" Value="True">
                <Setter Property="Background">
                    <Setter.Value>
                        <LinearGradientBrush StartPoint="1,0" EndPoint="0,1">
                            <GradientStop Color="Black" Offset="0"/>
                            <GradientStop Color="White" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
            </Trigger>-->
        </Style.Triggers>
        <Style.Resources>
            <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#B1DAF8" Opacity=".4"/>
            <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#B1DAF8" Opacity=".4"/>
        </Style.Resources>

    </Style>
</ResourceDictionary>